package com.example.helloworld;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TabHost;

public class TabSize extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tab_size);
		
		TabHost tabhost =	(TabHost)findViewById(R.id.tabhost);
		tabhost.setup();
		
		tabhost.addTab(
				tabhost.newTabSpec("1st-tab")
				.setIndicator("1st-tab")
				.setContent(R.id.lst_some)
		);
		
		tabhost.addTab(
				tabhost.newTabSpec("2nd-tab")
				.setIndicator("2nd-tab")
				.setContent(R.id.lst_some)
		);
		
		tabhost.getTabWidget().getChildAt(0).getLayoutParams().height = 45;
		tabhost.getTabWidget().getChildAt(1).getLayoutParams().height = 45;
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.tab_size, menu);
		return true;
	}

}
